package com.lry.write;

import com.lry.Node;

import java.util.List;
import java.util.concurrent.CompletableFuture;

public class WriteAll extends AbstractWriteConsistency implements WriteConsistency {
    @Override
    public String put(String key, String value, List<Node> nodes) {
        List<CompletableFuture<String>> futures = super.putAsync(key,value,nodes);

        return super.putReturn(futures,nodes.size());
    }
}
